﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TerryDong.DAL.DataModels;
namespace TerryDong.DAL.IDAL
{
    public interface IOrder:IDALBase
    {
        /// <summary>
        /// Method to insert an order header
        /// </summary>
        /// <param name="order">Business entity representing the order</param>
        /// <returns>OrderId</returns>
        void Insert(OrdersDataModel order);

        /// <summary>
        /// Reads the order information for a given orderId
        /// </summary>
        /// <param name="orderId">Unique identifier for an order</param>
        /// <returns>Business entity representing the order</returns>
        OrdersDataModel GetOrder(long orderId);
    }
}
